if(window.name == ""){
    layer.open({
        type: 1
        ,title: false //不显示标题栏
        ,closeBtn: false
        ,area: '300px;'
        ,shade: 0.8
        ,id: 'LAY_layuipro' //设定一个id，防止重复弹出
        ,resize: false
        ,btn: ['火速围观', '残忍拒绝']
        ,btnAlign: 'c'
        ,moveType: 1 //拖拽模式，0或者1
        ,content: '<div style="padding: 50px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;失忆<br><br>看上去很近 却有是那么远<br>我想走的更远,可是你却一直在靠近<br><br><br>距离给了我思念的空间,却给不了你记忆的余地<br>我想,也许这样会很好<br>至少你笑过<br></div>'
        ,success: function(layero){
            var btn = layero.find('.layui-layer-btn');
            btn.find('.layui-layer-btn0').attr({
                href: 'http://www.okshiwen.cn/Home/Index/article/id/80.html'
                ,target: '_blank'
            });
        }
    });
}else{
    //alert('你刷新了');
}
window.name = "blueidea";

function setCookie(name,value,days){
    var exp=new Date();
    exp.setTime(exp.getTime() + days*24*60*60*1000);
    var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
    document.cookie=name+"="+escape(value)+";expires="+exp.toGMTString();
}
function getCookie(name){
    var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
    if(arr!=null){
        return unescape(arr[2]);
        return null;
    }
}
function delCookie(name){
    var exp=new Date();
    exp.setTime(exp.getTime()-1);
    var cval=getCookie(name);

    if(cval!=null){

        document.cookie=name+"="+cval+";expires="+exp.toGMTString();
    }
}
function out(){

    if(getCookie("out")!="yes"){

        setCookie("out","yes",1);document.onLoad = sss();//sss()调用浮动层
    }
}
out();


<!--PageEndHtml Block End-->
console.log('  想你');
console.log('不是突然的！');
console.log('  想你');
console.log('是已经蓄谋已久的想法');
console.log('却一直没勇气！');
$(".dome1").mouseover(function(){
    layer.tips('么么哒', '.dome1', {
        tips: [4, '#78BA32']
    });
});
$(".dome2").mouseover(function(){
    layer.tips('别摸我', '.dome2', {
        tips: [4, '#78BA32']
    });
});
$(".dome3").mouseover(function(){
    layer.tips('莫讨嫌', '.dome3', {
        tips: [4, '#78BA32']
    });
});



//访问
function gohome(uid){
    var session=$(".session").val();
    if(session==''){
        swal("OMG!", "客官，这家伙忘记登录了!!!", "error");
        setTimeout(function(){
            $(".masker").show();
            $("#login").show();
        },2000);
        return false;
    }
    if(typeof(uid) == 'undefined'){
        swal("OMG!", "客官，这家伙拒绝你的访问!!!", "error");
        return false;
    }
    window.open('/home/' + uid + '.html', '_blank');
}